Skip to content

Conversation

sujan099
Copy link

Summary

This PR adds a new function scale_list under the bit_manipulation/ folder.

What It Does

  • The scale_list function takes a list of numbers and a scaling factor, and returns a new list with each element multiplied by the factor.
  • Includes a unit test file test_scale_list.py to verify correctness.

Why It's Useful

This provides a simple mathematical utility for scaling lists — useful in data preprocessing and basic arithmetic operations.

Notes

  • All code follows PEP8 style.
  • All tests pass using unittest.

Folder: bit_manipulation/

  • scale_list.py
  • test_scale_list.py

@algorithms-keeper algorithms-keeper bot added the tests are failing Do not merge until tests pass label Apr 29, 2025
@cclauss
Copy link
Member

cclauss commented Oct 14, 2025

Closing tests_are_failing PRs to prepare for Hacktoberfest

@cclauss cclauss closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests are failing Do not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants